package com.api.action.v1;

import com.api.service.v1.HeartAPIService;
import com.bean.ResponseBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 客户端心跳action
 */

@RestController
@RequestMapping("/api/v1/")
public class HeartApiAction {

    @Autowired
    private HeartAPIService heartService;



    @RequestMapping("/heart/{mac}")
    public ResponseBean heart(@PathVariable  String mac, String ip)
    {
        ResponseBean responseBean =  heartService.handlerHeart(mac, ip);
        return responseBean;
    }


}
